package cn.starrysky108.simpleerp.system.entity;

import cn.starrysky108.simpleerp.core.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 * 部门信息表
 * </p>
 *
 * @author Carl Lee
 * @since 2021-08-14
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("system_department")
@ApiModel(value = "SystemDepartment对象", description = "部门信息表")
public class SystemDepartment extends BaseEntity {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "部门名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "上级部门id")
    @TableField("parent")
    private Long parent;

    @ApiModelProperty(value = "部门描述")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "排序")
    @TableField("order_num")
    private Integer orderNum;

    @ApiModelProperty(value = "图标")
    @TableField("icon")
    private String icon;



}
